﻿using tools;
using System.ByteBuffer;

/// <summary>
/// 数据传输对象接口
/// </summary>
public interface Dto
{
    /// <summary>
    /// 子类覆盖此方法将数据写入缓冲
    /// </summary>
    /// <param name="b"></param>
		void write(object obj);

    /// <summary>
    /// 子类覆盖此方法从缓冲中读取数据
    /// </summary>
    /// <param name="b"></param>
    /// <param name="v"></param>
		void read(object obj);

}
